<?php

/**
 * sfAsset form.
 *
 * @package    cpfaizenay
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrinePluginFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class sfAssetForm extends PluginsfAssetForm
{
  public function configure() {
      parent::configure();

      unset($this['filename'], $this['filesize'], $this['created_at'], $this['updated_at'], $this['small_width'], $this['small_height'],
            $this['large_width'], $this['large_height'], $this['original_width'], $this['original_height'], $this['slug']);
      
      $user = sfContext::getInstance()->getUser()->getGuardUser();

      $this->setDefault('author', $user->getId() );
      $this->setDefault('copyright', sfConfig::get('app_sfAssetsFile_copyright'));
  }
}